package cn.zqh.auth.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zqh
 * @since 2022-12-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("User")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户表主键")
    @TableId(value = "User_id", type = IdType.ID_WORKER_STR)
    private String userId;

    @ApiModelProperty(value = "QQ邮箱")
    @TableField("Qq_email")
    private String qqEmail;

    @ApiModelProperty(value = "用户名")
    @TableField("Nick_name")
    private String nickName;

    @ApiModelProperty(value = "0是女，1是男，2是未知")
    @TableField("Sex")
    private Integer Sex;

    @ApiModelProperty(value = "用户头像")
    @TableField("Avatar")
    private String Avatar;

    @ApiModelProperty(value = "自我简介")
    @TableField("Intro")
    private String Intro;

    @ApiModelProperty(value = "用户地址")
    @TableField("Address")
    private String Address;

    @ApiModelProperty(value = "1拥有店铺，0没有店铺")
    @TableField("Is_store")
    private Integer isStore;

    @ApiModelProperty(value = "密码")
    @TableField("Password")
    private String Password;

    @ApiModelProperty(value = "money")
    @TableField("Hava_money")
    private Double havaMoney;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("Is_delete")
    @TableLogic
    private Integer isDelete;


}
